//
//  HZ_Lable.m
//  HZ_Beautiful_Music
//
//  Created by dllo on 16/4/13.
//  Copyright © 2016年 ui. All rights reserved.
//

#import "HZ_Lable.h"

@implementation HZ_Lable

//- (void)dealloc {
//    
//    [[NSNotificationCenter defaultCenter] removeObserver:self];
//}
//
//- (instancetype)initWithFrame:(CGRect)frame {
//    
//    self = [super initWithFrame:frame];
//    if (self) {
//        
//        self.backgroundColor = [UIColor clearColor];
//        
//        NSString *state = [[NSUserDefaults standardUserDefaults] objectForKey:@"night"];
//        if ([state isEqualToString:@"yes"]) {
//            self.backgroundColor = [UIColor clearColor];
//            self.textColor = [UIColor whiteColor];
//        }else {
//            self.backgroundColor = [UIColor whiteColor];
//            self.textColor = [UIColor blackColor];
//        }
//    }
//    NSNotificationCenter *centerLable = [NSNotificationCenter defaultCenter];
//    
//    [centerLable addObserver:self selector:@selector(buttonNotification:) name:@"heibai" object:nil];
//    
//    return self;
//    
//}
//
//- (void)buttonNotification:(NSNotification *)notification{
//    UIColor *color = [notification object];
//    self.backgroundColor = color;
//    if (color == [UIColor clearColor]) {
//        self.backgroundColor = [UIColor clearColor];
//        self.textColor = [UIColor whiteColor];
//    }else {
//        self.backgroundColor = [UIColor whiteColor];
//        self.textColor = [UIColor blackColor];
//    }
//    
//}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
